if (process.env.NODE_ENV === 'development' && 0) {
  const Mock = require('mockjs')

  // /**
  //  * 登陆接口
  //  */
  // Mock.mock(/agentUser\/authenticate/i, 'post', (req, resp) => {
  //   return {
  //     'data': {
  //       'id': 1,
  //       'account': 'admin',
  //       'name': 'admin',
  //       'state': 1,
  //       'token': 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTUyOTkyODkwMywiaWF0IjoxNTI5NTY4OTAzLCJuYmYiOjE1Mjk1Njg5MDMsImp0aSI6ImM4YzE2NjdiLWM5ODUtNDJjZC04MGI5LTJlNDZkZGE3OTE2MiJ9.CUftLuan_OGSwv7PHNWUDXhOHhnhk_8n3e9SUyUt7PFFrM-RCfpt-hQ_dv28KYhld159B7o91waAgqkPaLVhMQ',
  //       'active': true
  //     },
  //     'success': true
  //   }
  // })

  /**
   * 获取用户信息接口
   */
  Mock.mock(/agentUser\/info/i, 'post', (req, resp) => {
    return {
      status: null,
      msg: null,
      data: {
        id: '2c97a5c164dac8840164dac91baf0000',
        accountId: 'ba2f97367ece472c9239c423290e4aad',
        account: 'admin1',
        name: '超级管理员',
        enabled: 'Yes',
        supervisor: 'Yes',
        roles: [],
        menus: [
          {
            id: '55ae344143405b7bbb312e8e7ce8fa54',
            title: '设备管理',
            name: 'DeviceManage',
            code: 'device',
            icon: 'side_control',
            url: '/device',
            type: 'Expandable',
            sort: 9,
            children: [
              {
                id: '0beee6d4012557938610d1db293c2a66',
                title: '设备列表',
                name: 'DeviceList',
                code: 'list',
                url: '/device/list',
                type: 'Router',
                parentId: '55ae344143405b7bbb312e8e7ce8fa54',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '65e6d39ea5b152ddbb01f91d709bae44',
                title: '设备详情',
                name: 'DeviceInfo',
                code: 'info',
                url: '/device/info/:id',
                type: 'Hideable',
                parentId: '55ae344143405b7bbb312e8e7ce8fa54',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: 'b95c0a81-a230-4c14-bf4f-9bd32c94c715',
                name: '设备详情查询',
                desc: '设备详情查询(刷新)',
                rest: '/api/backend/airconditioner/*',
                method: 'GET',
                children: []
              },
              {
                id: '7e1ff109-677c-4ee0-ae0c-47755bbda550',
                name: '设备实时状态查询',
                desc: '批量查询实时状态',
                rest: '/api/backend/airconditioner/status',
                method: 'POST',
                children: []
              },
              {
                id: '1f79272a-2741-436b-8d33-cce165068420',
                name: '设备列表',
                desc: '设备列表信息查询',
                rest: '/api/backend/device/**',
                method: '*',
                children: []
              },
              {
                id: '66defc31-f177-4f52-a3e8-5bc104c7874c',
                name: '设备信息查询',
                desc: '',
                rest: '/api/backend/device/page',
                method: 'POST',
                children: []
              },
              {
                id: '8d0b8949-657f-4572-a585-a79e61545060',
                name: '未分组设备查询',
                desc: '',
                rest: '/api/backend/device/pageWithOutGroup',
                method: 'POST',
                children: []
              },
              {
                id: '127824e3-beb9-4689-8bb2-71e8f3d24b23',
                name: '分组列表',
                desc: '',
                rest: '/api/backend/deviceGroup/**',
                method: '*',
                children: []
              },
              {
                id: 'ee1eef82-644a-4424-8743-8ae954b1e669',
                name: '分组下拉信息查询',
                desc: '设备分组下拉信息',
                rest: '/api/backend/deviceGroup/select/*',
                method: 'GET',
                children: []
              },
              {
                id: '88dbad4e-8dd3-458f-8860-f21b8ebda805',
                name: '位置信息下拉列表',
                rest: '/api/backend/place/level/*',
                method: '*',
                children: []
              },
              {
                id: 'da9e7a5c-4120-4dfc-abd8-3790f2f73f18',
                name: '型号列表',
                desc: '',
                rest: '/api/backend/model/**',
                method: '*',
                children: []
              },
              {
                id: '51905f66-088a-4f56-af63-4543123f838b',
                name: '设备管理员列表查询',
                desc: '',
                rest: '/api/backend/manager/**',
                method: '*',
                children: []
              }
            ]
          },
          {
            id: '75d1948627af5ef485dcacef35070698',
            title: '已出售设备',
            name: 'Sale',
            code: 'sale',
            icon: 'side_pay',
            url: '/sale',
            type: 'Expandable',
            sort: 8,
            children: [
              {
                id: '589b1ce191f45502910f2f0bb865211e',
                title: '已出售设备列表',
                name: 'SaleList',
                code: 'list',
                url: '/sale/list',
                type: 'Router',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '7d40a6d111655d6d8d1e3b81048f3f04',
                title: '已出售设备详情',
                name: 'SaleInfo',
                code: 'info',
                url: '/sale/info/:id',
                type: 'Hideable',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: 'e76f4960-2e58-4ee7-acdf-e926bce5eb45',
                name: '付费授权列表',
                desc: '分页查询',
                rest: '/api/backend/pay*/**',
                method: '*',
                children: []
              },
              {
                id: '88dbad4e-8dd3-458f-8860-f21b8ebda805',
                name: '位置信息下拉列表',
                rest: '/api/backend/place/level/*',
                method: '*',
                children: []
              }
            ]
          },
          {
            id: '75d1948627af5ef485dcacef35070698',
            title: '押金方案管理',
            name: 'Deposit',
            code: 'deposit',
            icon: 'side_pay',
            url: '/deposit',
            type: 'Expandable',
            sort: 8,
            children: [
              {
                id: '589b1ce191f45502910f2f0bb865211e',
                title: '押金方案列表',
                name: 'DepositList',
                code: 'list',
                url: '/deposit/list',
                type: 'Router',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '7d40a6d111655d6d8d1e3b81048f3f04',
                title: '押金方案详情',
                name: 'DepositInfo',
                code: 'info',
                url: '/deposit/info/:id',
                type: 'Hideable',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: 'e76f4960-2e58-4ee7-acdf-e926bce5eb45',
                name: '付费授权列表',
                desc: '分页查询',
                rest: '/api/backend/pay*/**',
                method: '*',
                children: []
              },
              {
                id: '88dbad4e-8dd3-458f-8860-f21b8ebda805',
                name: '位置信息下拉列表',
                rest: '/api/backend/place/level/*',
                method: '*',
                children: []
              }
            ]
          },
          {
            id: '75d1948627af5ef485dcacef35070698',
            title: '租金方案管理',
            name: 'Rent',
            code: 'rent',
            icon: 'side_pay',
            url: '/rent',
            type: 'Expandable',
            sort: 8,
            children: [
              {
                id: '589b1ce191f45502910f2f0bb865211e',
                title: '租金方案列表',
                name: 'RentList',
                code: 'list',
                url: '/rent/list',
                type: 'Router',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '7d40a6d111655d6d8d1e3b81048f3f04',
                title: '租金方案详情',
                name: 'RentInfo',
                code: 'info',
                url: '/rent/info/:id',
                type: 'Hideable',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: 'e76f4960-2e58-4ee7-acdf-e926bce5eb45',
                name: '付费授权列表',
                desc: '分页查询',
                rest: '/api/**',
                method: '*',
                children: []
              },
              {
                id: '88dbad4e-8dd3-458f-8860-f21b8ebda805',
                name: '位置信息下拉列表',
                rest: '/api/**',
                method: '*',
                children: []
              }
            ]
          },
          {
            id: '75d1948627af5ef485dcacef35070698',
            title: '退租管理',
            name: 'Retire',
            code: 'retire',
            icon: 'side_pay',
            url: '/retire',
            type: 'Expandable',
            sort: 8,
            children: [
              {
                id: '589b1ce191f45502910f2f0bb865211e',
                title: '退租申请列表',
                name: 'RetireList',
                code: 'list',
                url: '/retire/list',
                type: 'Router',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '7d40a6d111655d6d8d1e3b81048f3f04',
                title: '退租详情',
                name: 'RetireInfo',
                code: 'info',
                url: '/retire/info/:id',
                type: 'Hideable',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: 'e76f4960-2e58-4ee7-acdf-e926bce5eb45',
                name: '付费授权列表',
                desc: '分页查询',
                rest: '/api/backend/pay*/**',
                method: '*',
                children: []
              },
              {
                id: '88dbad4e-8dd3-458f-8860-f21b8ebda805',
                name: '位置信息下拉列表',
                rest: '/api/backend/place/level/*',
                method: '*',
                children: []
              }
            ]
          },
          {
            id: '75d1948627af5ef485dcacef35070698',
            title: '收入支出',
            name: 'Balance',
            code: 'balance',
            icon: 'side_pay',
            url: '/balance',
            type: 'Expandable',
            sort: 8,
            children: [
              {
                id: '589b1ce191f45502910f2f0bb865211e',
                title: '收支流水记录',
                name: 'BalanceList',
                code: 'list',
                url: '/balance/list',
                type: 'Router',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '7d40a6d111655d6d8d1e3b81048f3f04',
                title: '收支详情',
                name: 'BalanceInfo',
                code: 'info',
                url: '/balance/info/:id',
                type: 'Hideable',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '7d40a6d111655d6d8d1e3b81048f3f09',
                title: '收支统计',
                name: 'BalanceStatistics',
                code: 'statistics',
                url: '/balance/statistics',
                type: 'Router',
                parentId: '75d1948627af5ef485dcacef35070698',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: 'e76f4960-2e58-4ee7-acdf-e926bce5eb45',
                name: '付费授权列表',
                desc: '分页查询',
                rest: '/api/**',
                method: '*',
                children: []
              },
              {
                id: '88dbad4e-8dd3-458f-8860-f21b8ebda805',
                name: '位置信息下拉列表',
                rest: '/api/**',
                method: '*',
                children: []
              }
            ]
          },
          {
            id: 'c681b736f9e65b2baee984b1734ff4e0',
            title: '报修记录',
            name: 'Repair',
            code: 'repair',
            icon: 'side_repair',
            url: '/repair',
            type: 'Expandable',
            sort: 6,
            children: [
              {
                id: '7ce4f3b88f8c570c9a0ba8921182357d',
                title: '故障列表',
                name: 'RepairList',
                code: 'list',
                url: '/repair/list',
                type: 'Router',
                parentId: 'c681b736f9e65b2baee984b1734ff4e0',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '83497efc823f46f888489a18456f85ca',
                title: '故障历史',
                name: 'RepairHistory',
                code: 'list',
                url: '/repair/history/:sn',
                type: 'Hideable',
                parentId: 'c681b736f9e65b2baee984b1734ff4e0',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: '97e7a43c056a57e38ead1c789005f5de',
                title: '故障详情',
                name: 'RepairInfo',
                code: 'info',
                url: '/repair/info/:id',
                type: 'Hideable',
                parentId: 'c681b736f9e65b2baee984b1734ff4e0',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: '9e2bb4fc-69e4-405c-8751-871887729996',
                name: '故障申报列表查询',
                desc: '',
                rest: '/api/backend/repair/**',
                method: '*',
                children: []
              }
            ]
          },
          {
            id: '2acc250ff9435d648a23eb64f473845e',
            title: '设备型号库',
            name: 'Model',
            code: 'model',
            icon: 'side_model',
            url: '/model',
            type: 'Hideable',
            sort: 5,
            children: [
              {
                id: '450e6b6d82ac5af6afd9fa37eea4255a',
                title: '型号列表',
                name: 'ModelList',
                code: 'list',
                url: '/model/list',
                type: 'Router',
                parentId: '2acc250ff9435d648a23eb64f473845e',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: 'a6c356ee576d5a63b4a227fa72f6c5b5',
                title: '型号详情',
                name: 'ModelInfo',
                code: 'info',
                url: '/model/info/:id',
                type: 'Hideable',
                parentId: '2acc250ff9435d648a23eb64f473845e',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: 'da9e7a5c-4120-4dfc-abd8-3790f2f73f18',
                name: '型号列表',
                desc: '',
                rest: '/api/backend/model/**',
                method: '*',
                children: []
              },
              {
                id: '6ef05d90-0b8e-4a7c-8301-23d7d3307b65',
                name: '型号下拉列表',
                rest: '/api/backend/model/all',
                method: '*',
                children: []
              }
            ]
          },
          {
            id: '136c3f9a66615bf683a16696c7419a8f',
            title: '系统日志',
            name: 'Log',
            code: 'log',
            icon: 'side_logs',
            url: '/log',
            type: 'Expandable',
            sort: 4,
            children: [
              {
                id: '059ceb0edeca5292bbeb89ac5c2b8d23',
                title: '系统操作日志',
                name: 'LogOperation',
                code: 'operation',
                url: '/log/operation',
                type: 'Router',
                parentId: '136c3f9a66615bf683a16696c7419a8f',
                sort: 0,
                children: [],
                apis: []
              },
              {
                id: 'efd29e8ce0bf54c588e7c1e655683a20',
                title: '设备控制记录',
                name: 'LogControl',
                code: 'control',
                url: '/log/control',
                type: 'Router',
                parentId: '136c3f9a66615bf683a16696c7419a8f',
                sort: 0,
                children: [],
                apis: []
              }
            ],
            apis: [
              {
                id: '590fa744-4409-4581-8a68-edbd7ebf154c',
                name: '设备控制日志查询',
                desc: '',
                rest: '/api/backend/deviceLog/page',
                method: 'POST',
                children: []
              },
              {
                id: '35501399-50bd-4509-9370-c19c15b3715d',
                name: '系统操作日志查询',
                desc: '',
                rest: '/api/backend/operationLog/page',
                method: 'POST',
                children: []
              }
            ]
          },
          {
            id: '1f1d4516c0f650cbb9b5a6b8e7ef2acd',
            title: '系统管理',
            name: 'System',
            code: 'system',
            icon: 'side_setting',
            url: '/system',
            type: 'Expandable',
            sort: 0,
            children: [
              {
                id: 'cc3cf67f732e5dd59891078c24762e8f',
                title: '企业信息维护',
                name: 'Info',
                code: 'info',
                url: '/info',
                type: 'Router',
                parentId: '1f1d4516c0f650cbb9b5a6b8e7ef2acd',
                sort: 10,
                apis: []
              },
              {
                id: 'cc3cf67f732e5dd59891078c24762e8f',
                title: '系统管理员',
                name: 'Admin',
                code: 'admin',
                url: '/admin',
                type: 'Groupable',
                parentId: '1f1d4516c0f650cbb9b5a6b8e7ef2acd',
                sort: 10,
                children: [
                  {
                    id: 'b1b44c7de18d54ae952c5f79e2e35eaf',
                    title: '管理员列表',
                    name: 'AdminList',
                    code: 'list',
                    url: '/admin/list',
                    type: 'Router',
                    parentId: 'cc3cf67f732e5dd59891078c24762e8f',
                    sort: 10,
                    children: [],
                    apis: []
                  },
                  {
                    id: '16134b7084665b6db8a2487090dc7459',
                    title: '新增管理员',
                    name: 'AdminForm',
                    code: 'new',
                    url: '/admin/info',
                    type: 'Router',
                    parentId: 'cc3cf67f732e5dd59891078c24762e8f',
                    sort: 9,
                    children: [],
                    apis: []
                  },
                  {
                    id: '241609f6d4245d6d9d1c02dba23f7c03',
                    title: '编辑管理员',
                    name: 'AdminInfo',
                    code: 'info',
                    url: '/admin/info/:id',
                    type: 'Hideable',
                    parentId: 'cc3cf67f732e5dd59891078c24762e8f',
                    sort: 9,
                    children: [],
                    apis: []
                  }
                ],
                apis: []
              },
              {
                id: 'ab3a3652c39d5b348f3710742d283d83',
                title: '角色',
                name: 'Role',
                code: 'role',
                url: '/role',
                type: 'Groupable',
                parentId: '1f1d4516c0f650cbb9b5a6b8e7ef2acd',
                sort: 0,
                children: [
                  {
                    id: '978f9509a0425a71a570b0c558fbfe0e',
                    title: '角色列表',
                    name: 'RoleList',
                    code: 'list',
                    url: '/role/list',
                    type: 'Router',
                    parentId: 'ab3a3652c39d5b348f3710742d283d83',
                    sort: 10,
                    children: [],
                    apis: []
                  },
                  {
                    id: 'abe904fbbfb14770b4138acfe46f4304',
                    title: '角色菜单管理',
                    name: 'menu',
                    code: 'list',
                    url: '/role/menu/:id',
                    type: 'Hideable',
                    parentId: 'ab3a3652c39d5b348f3710742d283d83',
                    sort: 10,
                    children: [],
                    apis: []
                  },
                  {
                    id: 'f9f921ef8efb4ff48943878cc23e7085',
                    title: '角色权限管理',
                    name: 'Api',
                    code: 'list',
                    url: '/role/permission/:id',
                    type: 'Hideable',
                    parentId: 'ab3a3652c39d5b348f3710742d283d83',
                    sort: 10,
                    children: [],
                    apis: []
                  },
                  {
                    id: '546aaf359859408c9d9f9eafa53b04f8',
                    title: '新增角色',
                    name: 'RoleForm',
                    code: 'new',
                    url: '/role/info',
                    type: 'Router',
                    parentId: 'ab3a3652c39d5b348f3710742d283d83',
                    sort: 0,
                    children: [],
                    apis: []
                  },
                  {
                    id: '7bf0741a269051499b8fe2ff504495dc',
                    title: '编辑角色',
                    name: 'RoleInfo',
                    code: 'info',
                    url: '/role/info/:id',
                    type: 'Hideable',
                    parentId: 'ab3a3652c39d5b348f3710742d283d83',
                    sort: 0,
                    children: [],
                    apis: []
                  }
                ],
                apis: []
              }
            ],
            apis: [
              {
                id: '0b6514fa-e370-4585-a8c0-7cd43736eec0',
                name: '角色列表',
                desc: '',
                rest: '/api/backend/role/**',
                method: '*',
                children: []
              },
              {
                id: 'bb0c2f2f-0fbb-4b88-adea-c383558404f4',
                name: '角色查询',
                desc: '',
                rest: '/api/backend/role/page ',
                method: 'POST',
                children: []
              },
              {
                id: 'c8fb873f-d06d-4d19-b4b6-03a77e4aeb2d',
                name: '管理员列表',
                desc: '',
                rest: '/api/backend/admin/**',
                method: '*',
                children: []
              },
              {
                id: 'b95c0a81-a230-4c14-bf4f-9bd32c94c723',
                name: '菜单查询',
                rest: '/api/backend/menu/all',
                method: 'GET',
                children: []
              }
            ]
          }
        ],
        permissions: [
          {
            id: '0b6514fa-e370-4585-a8c0-7cd43736eec0',
            name: '角色列表',
            desc: '',
            rest: '/api/backend/role/**',
            method: '*',
            children: []
          },
          {
            id: '127824e3-beb9-4689-8bb2-71e8f3d24b23',
            name: '分组列表',
            desc: '',
            rest: '/api/backend/deviceGroup/**',
            method: '*',
            children: []
          },
          {
            id: '1f79272a-2741-436b-8d33-cce165068420',
            name: '设备列表',
            desc: '设备列表信息查询',
            rest: '/api/backend/device/**',
            method: '*',
            children: []
          },
          {
            id: '35501399-50bd-4509-9370-c19c15b3715d',
            name: '系统操作日志查询',
            desc: '',
            rest: '/api/backend/operationLog/page',
            method: 'POST',
            children: []
          },
          {
            id: '3bdc4fa5-3588-48a4-bc70-fab065569eea',
            name: '故障申报',
            desc: '',
            rest: '',
            method: '',
            children: []
          },
          {
            id: '51905f66-088a-4f56-af63-4543123f838b',
            name: '设备管理员列表查询',
            desc: '',
            rest: '/api/backend/manager/**',
            method: '*',
            children: []
          },
          {
            id: '590fa744-4409-4581-8a68-edbd7ebf154c',
            name: '设备控制日志查询',
            desc: '',
            rest: '/api/backend/deviceLog/page',
            method: 'POST',
            children: []
          },
          {
            id: '66defc31-f177-4f52-a3e8-5bc104c7874c',
            name: '设备信息查询',
            desc: '',
            rest: '/api/backend/device/page',
            method: 'POST',
            children: []
          },
          {
            id: '68886a4f-edde-462f-871f-d9e326f03910',
            name: '楼栋分布',
            desc: '',
            rest: '/api/backend/map*/**',
            method: '*',
            children: []
          },
          {
            id: '6ef05d90-0b8e-4a7c-8301-23d7d3307b65',
            name: '型号下拉列表',
            rest: '/api/backend/model/all',
            method: '*',
            children: []
          },
          {
            id: '7a4d111b-04af-4419-a4ee-b7cb2ae4cc2d',
            name: '设备地图',
            desc: '',
            rest: '',
            method: '',
            children: []
          },
          {
            id: '7d5fec83-2722-41b4-8b41-47f523e9b18a',
            name: '系统日志',
            desc: '',
            rest: '',
            method: '',
            children: []
          },
          {
            id: '7e1ff109-677c-4ee0-ae0c-47755bbda550',
            name: '设备实时状态查询',
            desc: '批量查询实时状态',
            rest: '/api/backend/airconditioner/status',
            method: 'POST',
            children: []
          },
          {
            id: '87521da8-efb7-4b4d-bb97-54479da9bfd3',
            name: '设备管理',
            desc: '',
            rest: '',
            method: '',
            children: []
          },
          {
            id: '8811787b-04e2-48d5-b8a4-6f47dba24760',
            name: '设备管理员信息编辑',
            desc: '编辑设备管理员信息',
            rest: '/api/backend/manager/**',
            method: '*',
            children: []
          },
          {
            id: '88dbad4e-8dd3-458f-8860-f21b8ebda805',
            name: '位置信息下拉列表',
            rest: '/api/backend/place/level/*',
            method: '*',
            children: []
          },
          {
            id: '8d0b8949-657f-4572-a585-a79e61545060',
            name: '未分组设备查询',
            desc: '',
            rest: '/api/backend/device/pageWithOutGroup',
            method: 'POST',
            children: []
          },
          {
            id: '8dbfdc2a-dc70-4486-9e17-daa7b79c451e',
            name: '付费授权',
            desc: '',
            rest: '',
            method: '',
            children: []
          },
          {
            id: '9e2bb4fc-69e4-405c-8751-871887729996',
            name: '故障申报列表查询',
            desc: '',
            rest: '/api/backend/repair/**',
            method: '*',
            children: []
          },
          {
            id: '9e3248c8-cffc-4b57-ba2c-00c783aa8680',
            name: '设备型号库',
            desc: '',
            rest: '',
            method: '',
            children: []
          },
          {
            id: 'a5db7d97-99bc-4f53-bf84-7b279950852a',
            name: '设备管理员',
            desc: '',
            rest: '',
            method: '',
            children: []
          },
          {
            id: 'b95c0a81-a230-4c14-bf4f-9bd32c94c715',
            name: '设备详情查询',
            desc: '设备详情查询(刷新)',
            rest: '/api/backend/airconditioner/*',
            method: 'GET',
            children: []
          },
          {
            id: 'b95c0a81-a230-4c14-bf4f-9bd32c94c723',
            name: '菜单查询',
            rest: '/api/backend/menu/all',
            method: 'GET',
            children: []
          },
          {
            id: 'bb0c2f2f-0fbb-4b88-adea-c383558404f4',
            name: '角色查询',
            desc: '',
            rest: '/api/backend/role/page ',
            method: 'POST',
            children: []
          },
          {
            id: 'bfe53c59-b28e-4703-a37d-2a24432221b8',
            name: '系统管理',
            desc: '',
            rest: '',
            method: '',
            children: []
          },
          {
            id: 'c8fb873f-d06d-4d19-b4b6-03a77e4aeb2d',
            name: '管理员列表',
            desc: '',
            rest: '/api/backend/admin/**',
            method: '*',
            children: []
          },
          {
            id: 'da9e7a5c-4120-4dfc-abd8-3790f2f73f18',
            name: '型号列表',
            desc: '',
            rest: '/api/backend/model/**',
            method: '*',
            children: []
          },
          {
            id: 'db84a476-cd16-4c4d-a757-08218468bbc1',
            name: '分组查询',
            desc: '设备分组查询',
            rest: '/api/backend/deviceGroup/selected/*',
            method: 'GET',
            children: []
          },
          {
            id: 'e76f4960-2e58-4ee7-acdf-e926bce5eb45',
            name: '付费授权列表',
            desc: '分页查询',
            rest: '/api/backend/pay*/**',
            method: '*',
            children: []
          },
          {
            id: 'ee1eef82-644a-4424-8743-8ae954b1e669',
            name: '分组下拉信息查询',
            desc: '设备分组下拉信息',
            rest: '/api/backend/deviceGroup/select/*',
            method: 'GET',
            children: []
          }
        ]
      }
    }
  })

  /**
   * 获取管理员分页接口
   */
  Mock.mock(/adminUser\/conditionUsers/i, 'post', (req, resp) => {
    return {
      data: {
        content: [{
          id: 2,
          account: 'admin1',
          name: '爱大米',
          state: 1,
          active: true
        }, {
          id: 3,
          account: 'admin2',
          name: '客服',
          state: 1,
          active: true
        }, {
          id: 4,
          account: 'kaifa',
          name: '开发',
          state: 1,
          active: true
        }],
        last: true,
        totalElements: 3,
        totalPages: 1,
        first: true,
        numberOfElements: 3,
        size: 20,
        number: 0
      },
      success: true
    }
  })

  Mock.mock(/adminUser\/\d/i, 'get', (req, resp) => {
    return {
      data: {
        id: 2,
        account: 'admin1',
        name: '爱大米',
        state: 1,
        roles: [],
        active: true
      },
      success: true
    }
  })

  Mock.mock(/adminRole\/conditionRoles/i, 'post', (req, resp) => {
    return {
      data: {
        content: [{
          roleId: 2,
          name: '客服123',
          desc: ''
        }, {
          roleId: 3,
          name: '开发',
          desc: ''
        }],
        last: true,
        totalElements: 2,
        totalPages: 1,
        first: true,
        numberOfElements: 2,
        size: 20,
        number: 0
      },
      success: true
    }
  })

  Mock.mock(/adminRole\/\d/i, 'get', (req, resp) => {
    return {
      data: {
        roleId: 2,
        name: '客服123',
        desc: ''
      },
      success: true
    }
  })

  Mock.mock(/adminRole\/allRoles/i, 'get', (req, resp) => {
    return {
      data: [{
        roleId: 2,
        name: '客服123',
        desc: ''
      }, {
        roleId: 3,
        name: '开发',
        desc: ''
      }],
      success: true
    }
  })

  Mock.mock(/adminPermission\/levelList/i, 'get', (req, resp) => {
    return {
      data: [{
        id: 2,
        name: '活动相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 16,
          name: '活动-保存',
          rest: '/api/backend/activity',
          method: 'POST',
          parentId: 2,
          parentName: '活动相关接口'
        }, {
          id: 17,
          name: '活动-更新',
          rest: '/api/backend/activity',
          method: 'PUT',
          parentId: 2,
          parentName: '活动相关接口'
        }, {
          id: 18,
          name: '活动-根据条件查询活动列表',
          rest: '/api/backend/activity/conditionActivities',
          method: 'POST',
          parentId: 2,
          parentName: '活动相关接口'
        }, {
          id: 19,
          name: '活动-获取活动商品',
          rest: '/api/backend/activity/goods',
          method: 'POST',
          parentId: 2,
          parentName: '活动相关接口'
        }, {
          id: 20,
          name: '活动-设置活动状态',
          rest: '/api/backend/activity/state',
          method: 'PUT',
          parentId: 2,
          parentName: '活动相关接口'
        }, {
          id: 21,
          name: '活动-获取活动可用商品',
          rest: '/api/backend/activity/useableGoods',
          method: 'POST',
          parentId: 2,
          parentName: '活动相关接口'
        }, {
          id: 22,
          name: '活动-根据ID获取详情',
          rest: '/api/backend/activity/*',
          method: 'GET',
          parentId: 2,
          parentName: '活动相关接口'
        }, {
          id: 23,
          name: '活动-删除详情',
          rest: '/api/backend/activity/*',
          method: 'DELETE',
          parentId: 2,
          parentName: '活动相关接口'
        }]
      }, {
        id: 3,
        name: '目录菜单相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 84,
          name: '目录菜单-保存',
          rest: '/api/backend/menu',
          method: 'POST',
          parentId: 3,
          parentName: '目录菜单相关接口'
        }, {
          id: 85,
          name: '目录菜单-更新',
          rest: '/api/backend/menu',
          method: 'PUT',
          parentId: 3,
          parentName: '目录菜单相关接口'
        }, {
          id: 86,
          name: '目录菜单-获取两层菜单列表',
          rest: '/api/backend/menu/levelMenus',
          method: 'GET',
          parentId: 3,
          parentName: '目录菜单相关接口'
        }, {
          id: 87,
          name: '目录菜单-获取复杂条件分页列表',
          rest: '/api/backend/menu/page',
          method: 'POST',
          parentId: 3,
          parentName: '目录菜单相关接口'
        }, {
          id: 88,
          name: '目录菜单-根据ID获取详情',
          rest: '/api/backend/menu/*',
          method: 'GET',
          parentId: 3,
          parentName: '目录菜单相关接口'
        }, {
          id: 89,
          name: '目录菜单-删除详情',
          rest: '/api/backend/menu/*',
          method: 'DELETE',
          parentId: 3,
          parentName: '目录菜单相关接口'
        }]
      }, {
        id: 4,
        name: '管理员角色权限相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 24,
          name: '管理员角色权限-保存',
          rest: '/api/backend/adminPermission',
          method: 'POST',
          parentId: 4,
          parentName: '管理员角色权限相关接口'
        }, {
          id: 25,
          name: '管理员角色权限-更新',
          rest: '/api/backend/adminPermission',
          method: 'PUT',
          parentId: 4,
          parentName: '管理员角色权限相关接口'
        }, {
          id: 26,
          name: '管理员角色权限-获取权限列表',
          rest: '/api/backend/adminPermission/levelList',
          method: 'GET',
          parentId: 4,
          parentName: '管理员角色权限相关接口'
        }, {
          id: 27,
          name: '管理员角色权限-获取复杂条件分页列表',
          rest: '/api/backend/adminPermission/page',
          method: 'POST',
          parentId: 4,
          parentName: '管理员角色权限相关接口'
        }, {
          id: 28,
          name: '管理员角色权限-根据ID获取详情',
          rest: '/api/backend/adminPermission/*',
          method: 'GET',
          parentId: 4,
          parentName: '管理员角色权限相关接口'
        }, {
          id: 29,
          name: '管理员角色权限-删除详情',
          rest: '/api/backend/adminPermission/*',
          method: 'DELETE',
          parentId: 4,
          parentName: '管理员角色权限相关接口'
        }]
      }, {
        id: 5,
        name: '管理员角色相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 30,
          name: '管理员角色-保存',
          rest: '/api/backend/adminRole',
          method: 'POST',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 31,
          name: '管理员角色-更新',
          rest: '/api/backend/adminRole',
          method: 'PUT',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 32,
          name: '管理员角色-获取所有角色列表',
          rest: '/api/backend/adminRole/allRoles',
          method: 'GET',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 33,
          name: '管理员角色-根据名称查询角色列表',
          rest: '/api/backend/adminRole/conditionRoles',
          method: 'POST',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 34,
          name: '管理员角色-保存角色权限',
          rest: '/api/backend/adminRole/menus',
          method: 'POST',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 35,
          name: '管理员角色-获取角色的菜单列表',
          rest: '/api/backend/adminRole/menus/*',
          method: 'GET',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 36,
          name: '管理员角色-获取复杂条件分页列表',
          rest: '/api/backend/adminRole/page',
          method: 'POST',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 37,
          name: '管理员角色-保存角色权限',
          rest: '/api/backend/adminRole/permissions',
          method: 'POST',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 38,
          name: '管理员角色-获取角色的权限列表',
          rest: '/api/backend/adminRole/permissions/*',
          method: 'GET',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 39,
          name: '管理员角色-根据ID获取详情',
          rest: '/api/backend/adminRole/*',
          method: 'GET',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }, {
          id: 40,
          name: '管理员角色-删除详情',
          rest: '/api/backend/adminRole/*',
          method: 'DELETE',
          parentId: 5,
          parentName: '管理员角色相关接口'
        }]
      }, {
        id: 6,
        name: '后台账户相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 41,
          name: '后台账户-保存',
          rest: '/api/backend/adminuser',
          method: 'POST',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 42,
          name: '后台账户-更新',
          rest: '/api/backend/adminuser',
          method: 'PUT',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 43,
          name: '后台账户-获取用户列表',
          rest: '/api/backend/adminuser/conditionUsers',
          method: 'POST',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 44,
          name: '后台账户-获取用户信息',
          rest: '/api/backend/adminuser/info',
          method: 'POST',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 45,
          name: '后台账户-登录',
          rest: '/api/backend/adminuser/login',
          method: 'POST',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 46,
          name: '后台账户-获取复杂条件分页列表',
          rest: '/api/backend/adminuser/page',
          method: 'POST',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 47,
          name: '后台账户-用户修改自己的密码',
          rest: '/api/backend/adminuser/password',
          method: 'PUT',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 48,
          name: '后台账户-设置用户状态',
          rest: '/api/backend/adminuser/state',
          method: 'PUT',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 49,
          name: '后台账户-修改用户的密码',
          rest: '/api/backend/adminuser/userPassword',
          method: 'PUT',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 50,
          name: '后台账户-根据ID获取详情',
          rest: '/api/backend/adminuser/*',
          method: 'GET',
          parentId: 6,
          parentName: '后台账户相关接口'
        }, {
          id: 51,
          name: '后台账户-删除详情',
          rest: '/api/backend/adminuser/*',
          method: 'DELETE',
          parentId: 6,
          parentName: '后台账户相关接口'
        }]
      }, {
        id: 7,
        name: '商品分类相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 52,
          name: '商品分类-保存',
          rest: '/api/backend/category',
          method: 'POST',
          parentId: 7,
          parentName: '商品分类相关接口'
        }, {
          id: 53,
          name: '商品分类-更新',
          rest: '/api/backend/category',
          method: 'PUT',
          parentId: 7,
          parentName: '商品分类相关接口'
        }, {
          id: 54,
          name: '商品分类-根据条件查询分类信息',
          rest: '/api/backend/category/conditionCategories',
          method: 'POST',
          parentId: 7,
          parentName: '商品分类相关接口'
        }, {
          id: 55,
          name: '商品分类-获取级联分类列表',
          rest: '/api/backend/category/levelCategories',
          method: 'GET',
          parentId: 7,
          parentName: '商品分类相关接口'
        }, {
          id: 56,
          name: '商品分类-设置显示状态',
          rest: '/api/backend/category/showStatus',
          method: 'PUT',
          parentId: 7,
          parentName: '商品分类相关接口'
        }, {
          id: 57,
          name: '商品分类-根据ID获取详情',
          rest: '/api/backend/category/*',
          method: 'GET',
          parentId: 7,
          parentName: '商品分类相关接口'
        }, {
          id: 58,
          name: '商品分类-删除详情',
          rest: '/api/backend/category/*',
          method: 'DELETE',
          parentId: 7,
          parentName: '商品分类相关接口'
        }]
      }, {
        id: 8,
        name: '物流批次相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 59,
          name: '物流批次-保存',
          rest: '/api/backend/expressbatch',
          method: 'POST',
          parentId: 8,
          parentName: '物流批次相关接口'
        }, {
          id: 60,
          name: '物流批次-更新',
          rest: '/api/backend/expressbatch',
          method: 'PUT',
          parentId: 8,
          parentName: '物流批次相关接口'
        }, {
          id: 61,
          name: '物流批次-上传物流记录文件',
          rest: '/api/backend/expressbatch/data',
          method: 'POST',
          parentId: 8,
          parentName: '物流批次相关接口'
        }, {
          id: 62,
          name: '物流批次-根据条件获取物流批次的分页数据',
          rest: '/api/backend/expressbatch/page',
          method: 'POST',
          parentId: 8,
          parentName: '物流批次相关接口'
        }, {
          id: 63,
          name: '物流批次-根据ID获取详情',
          rest: '/api/backend/expressbatch/*',
          method: 'GET',
          parentId: 8,
          parentName: '物流批次相关接口'
        }, {
          id: 64,
          name: '物流批次-删除详情',
          rest: '/api/backend/expressbatch/*',
          method: 'DELETE',
          parentId: 8,
          parentName: '物流批次相关接口'
        }]
      }, {
        id: 9,
        name: '商品相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 65,
          name: '商品-保存',
          rest: '/api/backend/goods',
          method: 'POST',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 66,
          name: '商品-更新',
          rest: '/api/backend/goods',
          method: 'PUT',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 67,
          name: '商品-获取活动商品',
          rest: '/api/backend/goods/activityGoods',
          method: 'POST',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 68,
          name: '商品-根据条件查询商品信息',
          rest: '/api/backend/goods/get/*',
          method: 'GET',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 69,
          name: '商品-新增商品信息',
          rest: '/api/backend/goods/insert',
          method: 'POST',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 70,
          name: '商品-根据条件查询商品分页信息',
          rest: '/api/backend/goods/query',
          method: 'POST',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 71,
          name: '商品-编辑商品信息',
          rest: '/api/backend/goods/update',
          method: 'PUT',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 72,
          name: '商品-获取活动可用商品',
          rest: '/api/backend/goods/useableGoods',
          method: 'POST',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 73,
          name: '商品-根据ID获取详情',
          rest: '/api/backend/goods/*',
          method: 'GET',
          parentId: 9,
          parentName: '商品相关接口'
        }, {
          id: 74,
          name: '商品-删除详情',
          rest: '/api/backend/goods/*',
          method: 'DELETE',
          parentId: 9,
          parentName: '商品相关接口'
        }]
      }, {
        id: 10,
        name: '内部券相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 75,
          name: '内部券-保存',
          rest: '/api/backend/insideCode',
          method: 'POST',
          parentId: 10,
          parentName: '内部券相关接口'
        }, {
          id: 76,
          name: '内部券-更新',
          rest: '/api/backend/insideCode',
          method: 'PUT',
          parentId: 10,
          parentName: '内部券相关接口'
        }, {
          id: 77,
          name: '内部券-根据条件查询内部券列表',
          rest: '/api/backend/insideCode/conditionCodes',
          method: 'POST',
          parentId: 10,
          parentName: '内部券相关接口'
        }, {
          id: 78,
          name: '内部券-导入内部券',
          rest: '/api/backend/insideCode/import',
          method: 'POST',
          parentId: 10,
          parentName: '内部券相关接口'
        }, {
          id: 79,
          name: '内部券-下载内部券导入模板文件',
          rest: '/api/backend/insideCode/template',
          method: 'GET',
          parentId: 10,
          parentName: '内部券相关接口'
        }, {
          id: 80,
          name: '内部券-内部券类型',
          rest: '/api/backend/insideCode/types',
          method: 'GET',
          parentId: 10,
          parentName: '内部券相关接口'
        }, {
          id: 81,
          name: '内部券-上传内部券文件',
          rest: '/api/backend/insideCode/uploadCodeFile',
          method: 'POST',
          parentId: 10,
          parentName: '内部券相关接口'
        }, {
          id: 82,
          name: '内部券-根据ID获取详情',
          rest: '/api/backend/insideCode/*',
          method: 'GET',
          parentId: 10,
          parentName: '内部券相关接口'
        }, {
          id: 83,
          name: '内部券-删除详情',
          rest: '/api/backend/insideCode/*',
          method: 'DELETE',
          parentId: 10,
          parentName: '内部券相关接口'
        }]
      }, {
        id: 11,
        name: '供应商管理相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 90,
          name: '供应商管理-保存',
          rest: '/api/backend/operation',
          method: 'POST',
          parentId: 11,
          parentName: '供应商管理相关接口'
        }, {
          id: 91,
          name: '供应商管理-更新',
          rest: '/api/backend/operation',
          method: 'PUT',
          parentId: 11,
          parentName: '供应商管理相关接口'
        }, {
          id: 92,
          name: '供应商管理-根据条件查询运营位信息',
          rest: '/api/backend/operation/get/*',
          method: 'GET',
          parentId: 11,
          parentName: '供应商管理相关接口'
        }, {
          id: 93,
          name: '供应商管理-getList',
          rest: '/api/backend/operation/page',
          method: 'POST',
          parentId: 11,
          parentName: '供应商管理相关接口'
        }, {
          id: 94,
          name: '供应商管理-根据ID获取详情',
          rest: '/api/backend/operation/*',
          method: 'GET',
          parentId: 11,
          parentName: '供应商管理相关接口'
        }, {
          id: 95,
          name: '供应商管理-删除详情',
          rest: '/api/backend/operation/*',
          method: 'DELETE',
          parentId: 11,
          parentName: '供应商管理相关接口'
        }]
      }, {
        id: 12,
        name: '订单相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 96,
          name: '订单-保存',
          rest: '/api/backend/order',
          method: 'POST',
          parentId: 12,
          parentName: '订单相关接口'
        }, {
          id: 97,
          name: '订单-更新',
          rest: '/api/backend/order',
          method: 'PUT',
          parentId: 12,
          parentName: '订单相关接口'
        }, {
          id: 98,
          name: '订单-根据条件查询订单',
          rest: '/api/backend/order/conditionOrders',
          method: 'POST',
          parentId: 12,
          parentName: '订单相关接口'
        }, {
          id: 99,
          name: '订单-根据条件下载订单',
          rest: '/api/backend/order/export/*/*',
          method: 'GET',
          parentId: 12,
          parentName: '订单相关接口'
        }, {
          id: 100,
          name: '订单-根据ID获取详情',
          rest: '/api/backend/order/*',
          method: 'GET',
          parentId: 12,
          parentName: '订单相关接口'
        }, {
          id: 101,
          name: '订单-删除详情',
          rest: '/api/backend/order/*',
          method: 'DELETE',
          parentId: 12,
          parentName: '订单相关接口'
        }]
      }, {
        id: 13,
        name: '物流订单匹配相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 102,
          name: '物流订单匹配-保存',
          rest: '/api/backend/orderexpress',
          method: 'POST',
          parentId: 13,
          parentName: '物流订单匹配相关接口'
        }, {
          id: 103,
          name: '物流订单匹配-更新',
          rest: '/api/backend/orderexpress',
          method: 'PUT',
          parentId: 13,
          parentName: '物流订单匹配相关接口'
        }, {
          id: 104,
          name: '物流订单匹配-根据条件获取订单物流的分页数据',
          rest: '/api/backend/orderexpress/page',
          method: 'POST',
          parentId: 13,
          parentName: '物流订单匹配相关接口'
        }, {
          id: 105,
          name: '物流订单匹配-根据ID获取详情',
          rest: '/api/backend/orderexpress/*',
          method: 'GET',
          parentId: 13,
          parentName: '物流订单匹配相关接口'
        }, {
          id: 106,
          name: '物流订单匹配-删除详情',
          rest: '/api/backend/orderexpress/*',
          method: 'DELETE',
          parentId: 13,
          parentName: '物流订单匹配相关接口'
        }]
      }, {
        id: 14,
        name: '兑换码批次相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 107,
          name: '兑换码批次-保存',
          rest: '/api/backend/redeemCodeBatch',
          method: 'POST',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 108,
          name: '兑换码批次-更新',
          rest: '/api/backend/redeemCodeBatch',
          method: 'PUT',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 109,
          name: '兑换码批次-上传兑换码文件',
          rest: '/api/backend/redeemCodeBatch/codes',
          method: 'POST',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 110,
          name: '兑换码批次-根据条件查询兑换码批次信息',
          rest: '/api/backend/redeemCodeBatch/conditionRedeemCodeBatches',
          method: 'POST',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 111,
          name: '兑换码批次-更新兑换码名字信息',
          rest: '/api/backend/redeemCodeBatch/memo',
          method: 'PUT',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 112,
          name: '兑换码批次-根据条件查询兑换码信息',
          rest: '/api/backend/redeemCodeBatch/redeemCodes',
          method: 'POST',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 113,
          name: '兑换码批次-下载兑换码导入模板文件',
          rest: '/api/backend/redeemCodeBatch/template',
          method: 'GET',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 114,
          name: '兑换码批次-导入兑换码信息',
          rest: '/api/backend/redeemCodeBatch/uploadCodes',
          method: 'POST',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 115,
          name: '兑换码批次-根据ID获取详情',
          rest: '/api/backend/redeemCodeBatch/*',
          method: 'GET',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }, {
          id: 116,
          name: '兑换码批次-删除详情',
          rest: '/api/backend/redeemCodeBatch/*',
          method: 'DELETE',
          parentId: 14,
          parentName: '兑换码批次相关接口'
        }]
      }, {
        id: 15,
        name: '供应商管理相关接口',
        rest: '*',
        method: '*',
        permissions: [{
          id: 117,
          name: '供应商管理-保存',
          rest: '/api/backend/supplier',
          method: 'POST',
          parentId: 15,
          parentName: '供应商管理相关接口'
        }, {
          id: 118,
          name: '供应商管理-更新',
          rest: '/api/backend/supplier',
          method: 'PUT',
          parentId: 15,
          parentName: '供应商管理相关接口'
        }, {
          id: 119,
          name: '供应商管理-根据条件获取供应商的分页数据',
          rest: '/api/backend/supplier/page',
          method: 'POST',
          parentId: 15,
          parentName: '供应商管理相关接口'
        }, {
          id: 120,
          name: '供应商管理-根据ID获取详情',
          rest: '/api/backend/supplier/*',
          method: 'GET',
          parentId: 15,
          parentName: '供应商管理相关接口'
        }, {
          id: 121,
          name: '供应商管理-删除详情',
          rest: '/api/backend/supplier/*',
          method: 'DELETE',
          parentId: 15,
          parentName: '供应商管理相关接口'
        }]
      }],
      success: true
    }
  })

  Mock.mock(/adminPermission\/\d/i, 'get', (req, resp) => {
    return {
      data: [{
        id: 16,
        name: '活动-保存',
        rest: '/api/backend/activity',
        method: 'POST',
        parentId: 2
      }, {
        id: 17,
        name: '活动-更新',
        rest: '/api/backend/activity',
        method: 'PUT',
        parentId: 2
      }, {
        id: 18,
        name: '活动-根据条件查询活动列表',
        rest: '/api/backend/activity/conditionActivities',
        method: 'POST',
        parentId: 2
      }, {
        id: 19,
        name: '活动-获取活动商品',
        rest: '/api/backend/activity/goods',
        method: 'POST',
        parentId: 2
      }, {
        id: 20,
        name: '活动-设置活动状态',
        rest: '/api/backend/activity/state',
        method: 'PUT',
        parentId: 2
      }, {
        id: 21,
        name: '活动-获取活动可用商品',
        rest: '/api/backend/activity/useableGoods',
        method: 'POST',
        parentId: 2
      }, {
        id: 22,
        name: '活动-根据ID获取详情',
        rest: '/api/backend/activity/*',
        method: 'GET',
        parentId: 2
      }, {
        id: 23,
        name: '活动-删除详情',
        rest: '/api/backend/activity/*',
        method: 'DELETE',
        parentId: 2
      }, {
        id: 24,
        name: '管理员角色权限-保存',
        rest: '/api/backend/adminPermission',
        method: 'POST',
        parentId: 4
      }, {
        id: 25,
        name: '管理员角色权限-更新',
        rest: '/api/backend/adminPermission',
        method: 'PUT',
        parentId: 4
      }, {
        id: 26,
        name: '管理员角色权限-获取权限列表',
        rest: '/api/backend/adminPermission/levelList',
        method: 'GET',
        parentId: 4
      }, {
        id: 27,
        name: '管理员角色权限-获取复杂条件分页列表',
        rest: '/api/backend/adminPermission/page',
        method: 'POST',
        parentId: 4
      }, {
        id: 28,
        name: '管理员角色权限-根据ID获取详情',
        rest: '/api/backend/adminPermission/*',
        method: 'GET',
        parentId: 4
      }, {
        id: 29,
        name: '管理员角色权限-删除详情',
        rest: '/api/backend/adminPermission/*',
        method: 'DELETE',
        parentId: 4
      }, {
        id: 30,
        name: '管理员角色-保存',
        rest: '/api/backend/adminRole',
        method: 'POST',
        parentId: 5
      }, {
        id: 31,
        name: '管理员角色-更新',
        rest: '/api/backend/adminRole',
        method: 'PUT',
        parentId: 5
      }, {
        id: 32,
        name: '管理员角色-获取所有角色列表',
        rest: '/api/backend/adminRole/allRoles',
        method: 'GET',
        parentId: 5
      }, {
        id: 33,
        name: '管理员角色-根据名称查询角色列表',
        rest: '/api/backend/adminRole/conditionRoles',
        method: 'POST',
        parentId: 5
      }, {
        id: 34,
        name: '管理员角色-保存角色权限',
        rest: '/api/backend/adminRole/menus',
        method: 'POST',
        parentId: 5
      }, {
        id: 35,
        name: '管理员角色-获取角色的菜单列表',
        rest: '/api/backend/adminRole/menus/*',
        method: 'GET',
        parentId: 5
      }, {
        id: 36,
        name: '管理员角色-获取复杂条件分页列表',
        rest: '/api/backend/adminRole/page',
        method: 'POST',
        parentId: 5
      }, {
        id: 37,
        name: '管理员角色-保存角色权限',
        rest: '/api/backend/adminRole/permissions',
        method: 'POST',
        parentId: 5
      }, {
        id: 38,
        name: '管理员角色-获取角色的权限列表',
        rest: '/api/backend/adminRole/permissions/*',
        method: 'GET',
        parentId: 5
      }, {
        id: 39,
        name: '管理员角色-根据ID获取详情',
        rest: '/api/backend/adminRole/*',
        method: 'GET',
        parentId: 5
      }, {
        id: 40,
        name: '管理员角色-删除详情',
        rest: '/api/backend/adminRole/*',
        method: 'DELETE',
        parentId: 5
      }, {
        id: 41,
        name: '后台账户-保存',
        rest: '/api/backend/adminuser',
        method: 'POST',
        parentId: 6
      }, {
        id: 42,
        name: '后台账户-更新',
        rest: '/api/backend/adminuser',
        method: 'PUT',
        parentId: 6
      }, {
        id: 43,
        name: '后台账户-获取用户列表',
        rest: '/api/backend/adminuser/conditionUsers',
        method: 'POST',
        parentId: 6
      }, {
        id: 44,
        name: '后台账户-获取用户信息',
        rest: '/api/backend/adminuser/info',
        method: 'POST',
        parentId: 6
      }, {
        id: 45,
        name: '后台账户-登录',
        rest: '/api/backend/adminuser/login',
        method: 'POST',
        parentId: 6
      }, {
        id: 46,
        name: '后台账户-获取复杂条件分页列表',
        rest: '/api/backend/adminuser/page',
        method: 'POST',
        parentId: 6
      }, {
        id: 47,
        name: '后台账户-用户修改自己的密码',
        rest: '/api/backend/adminuser/password',
        method: 'PUT',
        parentId: 6
      }, {
        id: 48,
        name: '后台账户-设置用户状态',
        rest: '/api/backend/adminuser/state',
        method: 'PUT',
        parentId: 6
      }, {
        id: 49,
        name: '后台账户-修改用户的密码',
        rest: '/api/backend/adminuser/userPassword',
        method: 'PUT',
        parentId: 6
      }, {
        id: 50,
        name: '后台账户-根据ID获取详情',
        rest: '/api/backend/adminuser/*',
        method: 'GET',
        parentId: 6
      }, {
        id: 51,
        name: '后台账户-删除详情',
        rest: '/api/backend/adminuser/*',
        method: 'DELETE',
        parentId: 6
      }, {
        id: 52,
        name: '商品分类-保存',
        rest: '/api/backend/category',
        method: 'POST',
        parentId: 7
      }, {
        id: 53,
        name: '商品分类-更新',
        rest: '/api/backend/category',
        method: 'PUT',
        parentId: 7
      }, {
        id: 54,
        name: '商品分类-根据条件查询分类信息',
        rest: '/api/backend/category/conditionCategories',
        method: 'POST',
        parentId: 7
      }, {
        id: 55,
        name: '商品分类-获取级联分类列表',
        rest: '/api/backend/category/levelCategories',
        method: 'GET',
        parentId: 7
      }, {
        id: 56,
        name: '商品分类-设置显示状态',
        rest: '/api/backend/category/showStatus',
        method: 'PUT',
        parentId: 7
      }, {
        id: 57,
        name: '商品分类-根据ID获取详情',
        rest: '/api/backend/category/*',
        method: 'GET',
        parentId: 7
      }, {
        id: 58,
        name: '商品分类-删除详情',
        rest: '/api/backend/category/*',
        method: 'DELETE',
        parentId: 7
      }, {
        id: 59,
        name: '物流批次-保存',
        rest: '/api/backend/expressbatch',
        method: 'POST',
        parentId: 8
      }, {
        id: 60,
        name: '物流批次-更新',
        rest: '/api/backend/expressbatch',
        method: 'PUT',
        parentId: 8
      }, {
        id: 61,
        name: '物流批次-上传物流记录文件',
        rest: '/api/backend/expressbatch/data',
        method: 'POST',
        parentId: 8
      }, {
        id: 62,
        name: '物流批次-根据条件获取物流批次的分页数据',
        rest: '/api/backend/expressbatch/page',
        method: 'POST',
        parentId: 8
      }, {
        id: 63,
        name: '物流批次-根据ID获取详情',
        rest: '/api/backend/expressbatch/*',
        method: 'GET',
        parentId: 8
      }, {
        id: 64,
        name: '物流批次-删除详情',
        rest: '/api/backend/expressbatch/*',
        method: 'DELETE',
        parentId: 8
      }, {
        id: 65,
        name: '商品-保存',
        rest: '/api/backend/goods',
        method: 'POST',
        parentId: 9
      }, {
        id: 66,
        name: '商品-更新',
        rest: '/api/backend/goods',
        method: 'PUT',
        parentId: 9
      }, {
        id: 67,
        name: '商品-获取活动商品',
        rest: '/api/backend/goods/activityGoods',
        method: 'POST',
        parentId: 9
      }, {
        id: 68,
        name: '商品-根据条件查询商品信息',
        rest: '/api/backend/goods/get/*',
        method: 'GET',
        parentId: 9
      }, {
        id: 69,
        name: '商品-新增商品信息',
        rest: '/api/backend/goods/insert',
        method: 'POST',
        parentId: 9
      }, {
        id: 70,
        name: '商品-根据条件查询商品分页信息',
        rest: '/api/backend/goods/query',
        method: 'POST',
        parentId: 9
      }, {
        id: 71,
        name: '商品-编辑商品信息',
        rest: '/api/backend/goods/update',
        method: 'PUT',
        parentId: 9
      }, {
        id: 72,
        name: '商品-获取活动可用商品',
        rest: '/api/backend/goods/useableGoods',
        method: 'POST',
        parentId: 9
      }, {
        id: 73,
        name: '商品-根据ID获取详情',
        rest: '/api/backend/goods/*',
        method: 'GET',
        parentId: 9
      }, {
        id: 74,
        name: '商品-删除详情',
        rest: '/api/backend/goods/*',
        method: 'DELETE',
        parentId: 9
      }, {
        id: 75,
        name: '内部券-保存',
        rest: '/api/backend/insideCode',
        method: 'POST',
        parentId: 10
      }, {
        id: 76,
        name: '内部券-更新',
        rest: '/api/backend/insideCode',
        method: 'PUT',
        parentId: 10
      }, {
        id: 77,
        name: '内部券-根据条件查询内部券列表',
        rest: '/api/backend/insideCode/conditionCodes',
        method: 'POST',
        parentId: 10
      }, {
        id: 78,
        name: '内部券-导入内部券',
        rest: '/api/backend/insideCode/import',
        method: 'POST',
        parentId: 10
      }, {
        id: 79,
        name: '内部券-下载内部券导入模板文件',
        rest: '/api/backend/insideCode/template',
        method: 'GET',
        parentId: 10
      }, {
        id: 80,
        name: '内部券-内部券类型',
        rest: '/api/backend/insideCode/types',
        method: 'GET',
        parentId: 10
      }, {
        id: 81,
        name: '内部券-上传内部券文件',
        rest: '/api/backend/insideCode/uploadCodeFile',
        method: 'POST',
        parentId: 10
      }, {
        id: 82,
        name: '内部券-根据ID获取详情',
        rest: '/api/backend/insideCode/*',
        method: 'GET',
        parentId: 10
      }, {
        id: 83,
        name: '内部券-删除详情',
        rest: '/api/backend/insideCode/*',
        method: 'DELETE',
        parentId: 10
      }, {
        id: 84,
        name: '目录菜单-保存',
        rest: '/api/backend/menu',
        method: 'POST',
        parentId: 3
      }, {
        id: 85,
        name: '目录菜单-更新',
        rest: '/api/backend/menu',
        method: 'PUT',
        parentId: 3
      }, {
        id: 86,
        name: '目录菜单-获取两层菜单列表',
        rest: '/api/backend/menu/levelMenus',
        method: 'GET',
        parentId: 3
      }, {
        id: 87,
        name: '目录菜单-获取复杂条件分页列表',
        rest: '/api/backend/menu/page',
        method: 'POST',
        parentId: 3
      }, {
        id: 88,
        name: '目录菜单-根据ID获取详情',
        rest: '/api/backend/menu/*',
        method: 'GET',
        parentId: 3
      }, {
        id: 89,
        name: '目录菜单-删除详情',
        rest: '/api/backend/menu/*',
        method: 'DELETE',
        parentId: 3
      }, {
        id: 90,
        name: '供应商管理-保存',
        rest: '/api/backend/operation',
        method: 'POST',
        parentId: 11
      }, {
        id: 91,
        name: '供应商管理-更新',
        rest: '/api/backend/operation',
        method: 'PUT',
        parentId: 11
      }, {
        id: 92,
        name: '供应商管理-根据条件查询运营位信息',
        rest: '/api/backend/operation/get/*',
        method: 'GET',
        parentId: 11
      }, {
        id: 93,
        name: '供应商管理-getList',
        rest: '/api/backend/operation/page',
        method: 'POST',
        parentId: 11
      }, {
        id: 94,
        name: '供应商管理-根据ID获取详情',
        rest: '/api/backend/operation/*',
        method: 'GET',
        parentId: 11
      }, {
        id: 95,
        name: '供应商管理-删除详情',
        rest: '/api/backend/operation/*',
        method: 'DELETE',
        parentId: 11
      }, {
        id: 96,
        name: '订单-保存',
        rest: '/api/backend/order',
        method: 'POST',
        parentId: 12
      }, {
        id: 97,
        name: '订单-更新',
        rest: '/api/backend/order',
        method: 'PUT',
        parentId: 12
      }, {
        id: 98,
        name: '订单-根据条件查询订单',
        rest: '/api/backend/order/conditionOrders',
        method: 'POST',
        parentId: 12
      }, {
        id: 99,
        name: '订单-根据条件下载订单',
        rest: '/api/backend/order/export/*/*',
        method: 'GET',
        parentId: 12
      }, {
        id: 100,
        name: '订单-根据ID获取详情',
        rest: '/api/backend/order/*',
        method: 'GET',
        parentId: 12
      }, {
        id: 101,
        name: '订单-删除详情',
        rest: '/api/backend/order/*',
        method: 'DELETE',
        parentId: 12
      }, {
        id: 102,
        name: '物流订单匹配-保存',
        rest: '/api/backend/orderexpress',
        method: 'POST',
        parentId: 13
      }, {
        id: 103,
        name: '物流订单匹配-更新',
        rest: '/api/backend/orderexpress',
        method: 'PUT',
        parentId: 13
      }, {
        id: 104,
        name: '物流订单匹配-根据条件获取订单物流的分页数据',
        rest: '/api/backend/orderexpress/page',
        method: 'POST',
        parentId: 13
      }, {
        id: 105,
        name: '物流订单匹配-根据ID获取详情',
        rest: '/api/backend/orderexpress/*',
        method: 'GET',
        parentId: 13
      }, {
        id: 106,
        name: '物流订单匹配-删除详情',
        rest: '/api/backend/orderexpress/*',
        method: 'DELETE',
        parentId: 13
      }, {
        id: 107,
        name: '兑换码批次-保存',
        rest: '/api/backend/redeemCodeBatch',
        method: 'POST',
        parentId: 14
      }, {
        id: 108,
        name: '兑换码批次-更新',
        rest: '/api/backend/redeemCodeBatch',
        method: 'PUT',
        parentId: 14
      }, {
        id: 109,
        name: '兑换码批次-上传兑换码文件',
        rest: '/api/backend/redeemCodeBatch/codes',
        method: 'POST',
        parentId: 14
      }, {
        id: 110,
        name: '兑换码批次-根据条件查询兑换码批次信息',
        rest: '/api/backend/redeemCodeBatch/conditionRedeemCodeBatches',
        method: 'POST',
        parentId: 14
      }, {
        id: 111,
        name: '兑换码批次-更新兑换码名字信息',
        rest: '/api/backend/redeemCodeBatch/memo',
        method: 'PUT',
        parentId: 14
      }, {
        id: 112,
        name: '兑换码批次-根据条件查询兑换码信息',
        rest: '/api/backend/redeemCodeBatch/redeemCodes',
        method: 'POST',
        parentId: 14
      }, {
        id: 113,
        name: '兑换码批次-下载兑换码导入模板文件',
        rest: '/api/backend/redeemCodeBatch/template',
        method: 'GET',
        parentId: 14
      }, {
        id: 114,
        name: '兑换码批次-导入兑换码信息',
        rest: '/api/backend/redeemCodeBatch/uploadCodes',
        method: 'POST',
        parentId: 14
      }, {
        id: 115,
        name: '兑换码批次-根据ID获取详情',
        rest: '/api/backend/redeemCodeBatch/*',
        method: 'GET',
        parentId: 14
      }, {
        id: 116,
        name: '兑换码批次-删除详情',
        rest: '/api/backend/redeemCodeBatch/*',
        method: 'DELETE',
        parentId: 14
      }, {
        id: 117,
        name: '供应商管理-保存',
        rest: '/api/backend/supplier',
        method: 'POST',
        parentId: 15
      }, {
        id: 118,
        name: '供应商管理-更新',
        rest: '/api/backend/supplier',
        method: 'PUT',
        parentId: 15
      }, {
        id: 119,
        name: '供应商管理-根据条件获取供应商的分页数据',
        rest: '/api/backend/supplier/page',
        method: 'POST',
        parentId: 15
      }, {
        id: 120,
        name: '供应商管理-根据ID获取详情',
        rest: '/api/backend/supplier/*',
        method: 'GET',
        parentId: 15
      }, {
        id: 121,
        name: '供应商管理-删除详情',
        rest: '/api/backend/supplier/*',
        method: 'DELETE',
        parentId: 15
      }],
      success: true
    }
  })

  // Mock.mock(/menu\/levelMenus/i, 'get', (req, resp) => {
  //   return {
  //     'data': [{
  //       'id': 1,
  //       'name': '商品管理',
  //       'iconPath': 'goods',
  //       'parentId': 0,
  //       'url': '/goods',
  //       'type': 0,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 2,
  //         'name': '商品列表',
  //         'parentId': 1,
  //         'url': '/goods/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 3,
  //         'name': '新增商品',
  //         'parentId': 1,
  //         'url': '/goods/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 5,
  //         'name': '分类列表',
  //         'parentId': 1,
  //         'url': '/category/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 6,
  //         'name': '新增分类',
  //         'parentId': 1,
  //         'url': '/category/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 32,
  //         'name': '编辑分类',
  //         'parentId': 1,
  //         'url': '/category/info/:categoryId',
  //         'type': 3,
  //         'sort': 0
  //       }, {
  //         'id': 48,
  //         'name': '内部券列表',
  //         'parentId': 1,
  //         'url': '/insideCode/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 49,
  //         'name': '编辑商品',
  //         'parentId': 1,
  //         'url': '/goods/info/:id',
  //         'type': 3,
  //         'sort': 0
  //       }]
  //     }, {
  //       'id': 7,
  //       'name': '订单管理',
  //       'iconPath': 'order',
  //       'parentId': 0,
  //       'url': '/order',
  //       'type': 0,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 8,
  //         'name': '订单列表',
  //         'parentId': 7,
  //         'url': '/order/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 9,
  //         'name': '新增订单',
  //         'parentId': 7,
  //         'url': '/order/info',
  //         'type': 3,
  //         'sort': 0
  //       }]
  //     }, {
  //       'id': 10,
  //       'name': '物流管理',
  //       'iconPath': 'express',
  //       'parentId': 0,
  //       'url': '/express',
  //       'type': 0,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 11,
  //         'name': '物流列表',
  //         'parentId': 10,
  //         'url': '/express/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 12,
  //         'name': '新增物流',
  //         'parentId': 10,
  //         'url': '/express/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 43,
  //         'name': '编辑物流',
  //         'parentId': 10,
  //         'url': '/express/info/:id',
  //         'type': 3,
  //         'sort': 0
  //       }]
  //     }, {
  //       'id': 13,
  //       'name': '兑换码管理',
  //       'iconPath': 'redeemcode',
  //       'parentId': 0,
  //       'url': '/redeemcode',
  //       'type': 0,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 14,
  //         'name': '兑换码列表',
  //         'parentId': 13,
  //         'url': '/redeemcode/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 15,
  //         'name': '新增兑换码',
  //         'parentId': 13,
  //         'url': '/redeemcode/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 34,
  //         'name': '编辑兑换码',
  //         'parentId': 13,
  //         'url': '/redeemcode/info/:batchId',
  //         'type': 3,
  //         'sort': 0
  //       }, {
  //         'id': 35,
  //         'name': '上传兑换码',
  //         'parentId': 13,
  //         'url': '/redeemcode/uploadcodes',
  //         'type': 3,
  //         'sort': 0
  //       }]
  //     }, {
  //       'id': 16,
  //       'name': '供应商管理',
  //       'iconPath': 'supplier',
  //       'parentId': 0,
  //       'url': '/supplier',
  //       'type': 0,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 17,
  //         'name': '供应商列表',
  //         'parentId': 16,
  //         'url': '/supplier/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 18,
  //         'name': '新增供应商',
  //         'parentId': 16,
  //         'url': '/supplier/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 33,
  //         'name': '编辑供应商',
  //         'parentId': 16,
  //         'url': '/supplier/info/:id',
  //         'type': 3,
  //         'sort': 0
  //       }, {
  //         'id': 42,
  //         'name': '编辑供应商',
  //         'parentId': 16,
  //         'url': '/supplier/info/:id',
  //         'type': 3,
  //         'sort': 0
  //       }]
  //     }, {
  //       'id': 19,
  //       'name': '运营位管理',
  //       'iconPath': 'operation',
  //       'parentId': 0,
  //       'url': '/operation',
  //       'type': 0,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 20,
  //         'name': '运营位列表',
  //         'parentId': 19,
  //         'url': '/operation/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 21,
  //         'name': '新增运营位',
  //         'parentId': 19,
  //         'url': '/operation/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 50,
  //         'name': '编辑运营位',
  //         'parentId': 19,
  //         'url': '/operation/info/:id',
  //         'type': 3,
  //         'sort': 0
  //       }]
  //     }, {
  //       'id': 22,
  //       'name': '活动管理',
  //       'iconPath': 'activity',
  //       'parentId': 0,
  //       'url': '/activity',
  //       'type': 0,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 23,
  //         'name': '活动列表',
  //         'parentId': 22,
  //         'url': '/activity/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 24,
  //         'name': '新增活动',
  //         'parentId': 22,
  //         'url': '/activity/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 46,
  //         'name': '编辑活动',
  //         'parentId': 22,
  //         'url': '/activity/info/:activityId',
  //         'type': 3,
  //         'sort': 0
  //       }]
  //     }, {
  //       'id': 25,
  //       'name': '常见问题管理',
  //       'iconPath': 'article',
  //       'parentId': 0,
  //       'url': '/article',
  //       'type': 3,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 26,
  //         'name': '列表',
  //         'parentId': 25,
  //         'url': '/article/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 27,
  //         'name': '新增',
  //         'parentId': 25,
  //         'url': '/article/info',
  //         'type': 2,
  //         'sort': 0
  //       }]
  //     }, {
  //       'id': 28,
  //       'name': '系统管理',
  //       'iconPath': 'system',
  //       'parentId': 0,
  //       'url': '/system',
  //       'type': 0,
  //       'sort': 0,
  //       'subMenus': [{
  //         'id': 29,
  //         'name': '商城设置',
  //         'parentId': 28,
  //         'url': '/system/shopsetting',
  //         'type': 3,
  //         'sort': 0
  //       }, {
  //         'id': 36,
  //         'name': '管理员列表',
  //         'parentId': 28,
  //         'url': '/admin/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 37,
  //         'name': '新增管理员',
  //         'parentId': 28,
  //         'url': '/admin/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 38,
  //         'name': '编辑管理员',
  //         'parentId': 28,
  //         'url': '/admin/info/:adminId',
  //         'type': 3,
  //         'sort': 0
  //       }, {
  //         'id': 39,
  //         'name': '角色列表',
  //         'parentId': 28,
  //         'url': '/role/list',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 40,
  //         'name': '新增角色',
  //         'parentId': 28,
  //         'url': '/role/info',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 41,
  //         'name': '编辑角色',
  //         'parentId': 28,
  //         'url': '/role/info/:roleId',
  //         'type': 3,
  //         'sort': 0
  //       }, {
  //         'id': 44,
  //         'name': '角色权限管理',
  //         'parentId': 28,
  //         'url': '/role/permission',
  //         'type': 2,
  //         'sort': 0
  //       }, {
  //         'id': 45,
  //         'name': '角色菜单管理',
  //         'parentId': 28,
  //         'url': '/role/menu',
  //         'type': 2,
  //         'sort': 0
  //       }]
  //     }],
  //     'success': true
  //   }
  // })

  // /**
  //  * 获取用户分页接口
  //  */
  // Mock.mock(/user\/query/i, 'post', (req, resp) => {
  //   return {
  //     'data': {
  //       'content': [{
  //         'id': 2,
  //         'account': 'user1',
  //         'name': '傅小小',
  //         'vocation': '学生',
  //         'phone': '13333333333',
  //         'major': '20',
  //         'minor': '100',
  //         'state': 1,
  //         'active': true
  //       }, {
  //         'id': 3,
  //         'account': 'user2',
  //         'name': '徐尚',
  //         'vocation': '老师',
  //         'phone': '13333333333',
  //         'major': '20',
  //         'minor': '100',
  //         'state': 1,
  //         'active': true
  //       }, {
  //         'id': 4,
  //         'account': 'user3',
  //         'name': '谭敏仪',
  //         'vocation': '学生',
  //         'phone': '13333333333',
  //         'major': '20',
  //         'minor': '100',
  //         'state': 1,
  //         'active': true
  //       }],
  //       'last': true,
  //       'totalElements': 3,
  //       'totalPages': 1,
  //       'first': true,
  //       'numberOfElements': 3,
  //       'size': 20,
  //       'number': 0
  //     },
  //     'success': true
  //   }
  // })
  // /**
  //  * 获取设备分页接口
  //  */
  // Mock.mock(/fridge\/page/i, 'post', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'model': {
  //         'id|+1': 50,
  //         'brandName': '美菱(meling)',
  //         'name': /[A-Z]{2}-\d{3}[A-Z]/
  //       },
  //       'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{2}/,
  //       'address': '四川-绵阳-高新区',
  //       'customName': '小丑',
  //       dealTime: '@date',
  //       applyTime: '@datetime',
  //       tel: '13000000000',
  //       deposit: 300,
  //       'retairState|1': [1, 2, 3]
  //     }],
  //     'last': true,
  //     'totalElements': 10,
  //     'totalPages': 1,
  //     'first': true,
  //     'numberOfElements': 10,
  //     'size': 20,
  //     'number': 0
  //   },
  //   'success': true
  // })
  // /**
  //  * 获取设备授权列表接口
  //  */
  // Mock.mock(/device\/pay/i, 'post', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'group': {
  //         'id|+1': 20,
  //         'groupName': '@ctitle(5, 7)'
  //       },
  //       'model': {
  //         'id|+1': 50,
  //         'brand': '长虹',
  //         'type': /[A-Z]{2}-\d{3}[A-Z]/
  //       },
  //       'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{2}/,
  //       'building': '东区教学楼主楼',
  //       'floor|1-7': 1,
  //       'room': /[A-Z][1-9]\d{3}/,
  //       'connection|1': ['online', 'offline', 'free', 'exception'],
  //       'status|1': ['on', 'off'],
  //       'authorityType|1': [0, 1, 2, 3] /* 0未缴费, 1上半学年，2下半学年，3全年 */
  //     }],
  //     'last': true,
  //     'totalElements': 10,
  //     'totalPages': 1,
  //     'first': true,
  //     'numberOfElements': 10,
  //     'size': 20,
  //     'number': 0
  //   },
  //   'success': true
  // })
  // /**
  //  * 设备详情
  //  */
  // Mock.mock(/fridge\/\d/i, 'get', {
  //   'data': {
  //     'id': 1,
  //     'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{2}/,
  //     'version': 'KT7580',
  //     'productDate': '@date',
  //     'fixDate': '@date',
  //     'building': '西区第一教学楼',
  //     'floor': 2,
  //     'room': 'H2211',
  //     'connection|1': ['online', 'offline', 'free', 'exception'],
  //     'status|1': ['on', 'off'],
  //     'temperature': 20,
  //     'mode': 'cool',
  //     'rank': 0,
  //     'authorityType|1': [0, 1, 2, 3],
  //     'model': {
  //       'id': 2,
  //       'brandName': '美菱(MEILING)',
  //       'name': '全智能变频空调 QT850',
  //       'type': /[A-Z]{2}-\d{3}[A-Z]/,
  //       'rate': '1.5P',
  //       'style': '壁挂式',
  //       'isFrequency': '变频',
  //       'thumb': ''
  //     },
  //     'group': {
  //       'id': 5,
  //       'groupname': 'XB-532-B07',
  //       'mode|1': ['cool', 'heat', 'auto'],
  //       'temperature': 20
  //     },
  //     'managers': {
  //       'charger': {
  //         'id': 1,
  //         'name': '李云龙'
  //       },
  //       'managers': [{
  //         'id': 12,
  //         'name': '王小可'
  //       },
  //       {
  //         'id': 13,
  //         'name': '张二帅'
  //       },
  //       {
  //         'id': 14,
  //         'name': '朱益达'
  //       },
  //       {
  //         'id': 15,
  //         'name': '王小丫'
  //       },
  //       {
  //         'id': 16,
  //         'name': '贾菲菲'
  //       },
  //       {
  //         'id': 17,
  //         'name': '欧阳娜娜'
  //       }
  //       ]
  //     },
  //     'customer': {
  //       id: '1',
  //       name: '李晓天',
  //       tel: '15888888888'
  //     },
  //     dealDate: '2018-10-27 14:34:50',
  //     deadline: '2019-01-14 16:14:01',
  //     applyTime: '@datetime',
  //     deposit: 300,
  //     status: {
  //       authState: {
  //         title: '普通租赁'
  //       },
  //       'retairState|1': [1, 2, 3]
  //     }
  //   },
  //   'success': true
  // })
  // /**
  //  * 分组分页列表
  //  */
  // Mock.mock(/group\/query/i, 'post', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'groupName': '@ctitle(5, 7)',
  //       'count': '@natural(0, 30)',
  //       'status|1': '@boolean(3, 1, true)'
  //     }],
  //     'last': true,
  //     'totalElements': 10,
  //     'totalPages': 1,
  //     'first': true,
  //     'numberOfElements': 10,
  //     'size': 20,
  //     'number': 0
  //   },
  //   'success': true
  // })
  // /**
  //  * 分组详情
  //  */
  // Mock.mock(/group\/\d/i, 'get', {
  //   'data': {
  //     'id': 5,
  //     'groupName': '@name',
  //     'isAuto': '@boolean',
  //     'devices|10': [{
  //       'id|+1': 1,
  //       'brand': '长虹',
  //       'type': /[A-Z]{2}-\d{3}[A-Z]/,
  //       'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{2}/,
  //       'building': '东区教学楼主楼',
  //       'floor|1-7': 1,
  //       'room': /[A-Z][1-9]\d{3}/,
  //       'connection|1': ['online', 'offline', 'free', 'exception'],
  //       'status|1': ['on', 'off']
  //     }],
  //     'plan': {
  //       'mode|1': ['cool', 'heat', 'auto'],
  //       'temperature': 20,
  //       'startDate': '@date',
  //       'endDate': '@date',
  //       'startTime': '08:00:00',
  //       'endTime': '18:00:00'
  //     }
  //   },
  //   'success': true
  // })
  // /**
  //  * 获取分组列表
  //  */
  // Mock.mock(/group\/all/i, 'get', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'groupName': '@ctitle(5, 7)'
  //     }]
  //   },
  //   'success': true
  // })
  // /**
  //  * 获取位置列表
  //  */
  // Mock.mock(/location\/all/i, 'get', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'value': /[东西]区[男女]生第[一二三四]宿舍楼/,
  //       'label': /[东西]区[男女]生第[一二三四]宿舍楼/,
  //       'children|3-5': [{
  //         'id|+1': 100,
  //         'value': /\d楼/,
  //         'label': /\d楼/,
  //         'children|10': [{
  //           'id|+1': 1000,
  //           'label': /\d{4}/,
  //           'value': /\d{4}/
  //         }]
  //       }]
  //     }]
  //   },
  //   'success': true
  // })
  // /**
  //  * 获取单个建筑物详情
  //  */
  // Mock.mock(/mapFloor\/mapRoom/i, 'post', {
  //   'data': {
  //     'content|7': [{
  //       'id|+1': 1,
  //       'floor|+1': 1,
  //       'devices|8-10': [{
  //         'id|+1': 100,
  //         'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{14}/,
  //         'connection|1': ['online', 'offline', 'free', 'exception'],
  //         'status|1': ['on', 'off', 'repairing'],
  //         'temperature': 20,
  //         'mode|1': ['cool', 'heat', 'auto'],
  //         'rank|0-3': 0,
  //         'room': /[A-Z][1-9]\d{3}/,
  //         'model': {
  //           'id': 50,
  //           'brand': '长虹'
  //         }
  //       }]
  //     }]
  //   },
  //   'success': true
  // })
  // /**
  //  * 获取型号列表
  //  */
  // Mock.mock(/model\/query/i, 'post', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'brand': '长虹',
  //       'type': /[A-Z]{2}-\d{3}[A-Z]/,
  //       'count|10-99': 1,
  //       'createDate': '@datetime(yyyy/MM/dd HH:mm:ss)'
  //     }],
  //     'last': true,
  //     'totalElements': 10,
  //     'totalPages': 1,
  //     'first': true,
  //     'numberOfElements': 10,
  //     'size': 20,
  //     'number': 0
  //   },
  //   'success': true
  // })
  // /**
  //  * 获取报修列表
  //  */
  // Mock.mock(/repair\/query/i, 'post', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'device': {
  //         'id|+1': 100,
  //         'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{2}/,
  //         'model': {
  //           'id+1': 1000,
  //           'brand': '长虹',
  //           'type': /[A-Z]{2}-\d{3}[A-Z]/
  //         }
  //       },
  //       'type|1-2': 0,
  //       'status|1-4': 0,
  //       'createDate': '@datetime(yyyy/MM/dd HH:mm:ss)'
  //     }],
  //     'last': true,
  //     'totalElements': 10,
  //     'totalPages': 1,
  //     'first': true,
  //     'numberOfElements': 10,
  //     'size': 20,
  //     'number': 0
  //   },
  //   'success': true
  // })
  // /**
  //  * 获取单台设备报修历史列表
  //  */
  // Mock.mock(/repair\/device/i, 'post', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'type|1-2': 0,
  //       'status|1-4': 0,
  //       'code': 'F0X009042',
  //       'createDate': '@datetime(yyyy/MM/dd HH:mm:ss)',
  //       'content': '@cparagraph',
  //       'creator': {
  //         'id': 20,
  //         'name': '@cname',
  //         'mobile': '@natural(1.3e10, 1.89e10)',
  //         'certification': '@natural(1e8, 9e8)'
  //       },
  //       'pictures|1-3': [{
  //         'id|+1': '1000',
  //         'url': '@image("300x300", "@color", "#fff", "Hello World")'
  //       }]
  //     }],
  //     'last': true,
  //     'totalElements': 10,
  //     'totalPages': 1,
  //     'first': true,
  //     'numberOfElements': 10,
  //     'size': 20,
  //     'number': 0
  //   },
  //   'success': true
  // })
  // /**
  //  * 报修详情
  //  */
  // Mock.mock(/repair\/\d/i, 'get', {
  //   'data': {
  //     'id': 1,
  //     'type|1-2': 0,
  //     'code': 'F0X009042',
  //     'status|1-4': 0,
  //     'createDate': '@datetime(yyyy/MM/dd HH:mm:ss)',
  //     'content': '@cparagraph',
  //     'creator': {
  //       'id': 20,
  //       'name': '@cname',
  //       'mobile': '@natural(1.3e10, 1.89e10)',
  //       'certification': '@natural(1e8, 9e8)'
  //     },
  //     'device': {
  //       'id': 50,
  //       'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{2}/,
  //       'version': 'KT7580',
  //       'building': '西区第一教学楼',
  //       'floor|1-7': 0,
  //       'room': 'H2211',
  //       'model': {
  //         'id': 100,
  //         'brand': '长虹',
  //         'rate': '1.5P',
  //         'type': /[A-Z]{2}-\d{3}[A-Z]/
  //       },
  //       'group': {
  //         'id': 200,
  //         'groupName': '@ctitle(2,7)'
  //       }
  //     },
  //     'pictures|1-3': [{
  //       'id|+1': '1000',
  //       'url': '@image("300x300", "@color", "#fff", "Hello World")'
  //     }]
  //   },
  //   'success': true
  // })
  // /**
  //  * 图片上传
  //  */
  // Mock.mock(/image/i, 'post', {
  //   'data': {
  //     'id': 1,
  //     'url': '@image("300x300", "@color", "#fff", "Hello World")'
  //   },
  //   'success': true
  // })

  // /**
  //  * 获取未设置押金设备列表
  //  */
  // Mock.mock(/device\/pageWithOut/i, 'post', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'group': {
  //         'id|+1': 20,
  //         'groupName': '@ctitle(5, 7)'
  //       },
  //       'model': {
  //         'id|+1': 50,
  //         'brand': '长虹',
  //         'type': /[A-Z]{2}-\d{3}[A-Z]/
  //       },
  //       'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{2}/,
  //       'building': '东区教学楼主楼',
  //       'floor|1-7': 1,
  //       'room': /[A-Z][1-9]\d{3}/,
  //       'connection|1': ['online', 'offline', 'free', 'exception'],
  //       'status|1': ['on', 'off'],
  //       'authorityType|1': [0, 1, 2, 3] /* 0未缴费, 1上半学年，2下半学年，3全年 */
  //     }],
  //     'last': true,
  //     'totalElements': 10,
  //     'totalPages': 1,
  //     'first': true,
  //     'numberOfElements': 10,
  //     'size': 20,
  //     'number': 0
  //   },
  //   'success': true
  // })

  // /**
  //  * 获取当前押金方案设备列表
  //  */
  // Mock.mock(/device\/page/i, 'post', {
  //   'data': {
  //     'content|10': [{
  //       'id|+1': 1,
  //       'group': {
  //         'id|+1': 20,
  //         'groupName': '@ctitle(5, 7)'
  //       },
  //       'model': {
  //         'id|+1': 50,
  //         'brand': '长虹',
  //         'type': /[A-Z]{2}-\d{3}[A-Z]/
  //       },
  //       'sn': /ML\d{4}[A-Z]\d{2}[A-Z]\d{2}/,
  //       'building': '东区教学楼主楼',
  //       'floor|1-7': 1,
  //       'room': /[A-Z][1-9]\d{3}/,
  //       'connection|1': ['online', 'offline', 'free', 'exception'],
  //       'status|1': ['on', 'off'],
  //       'authorityType|1': [0, 1, 2, 3] /* 0未缴费, 1上半学年，2下半学年，3全年 */
  //     }],
  //     'last': true,
  //     'totalElements': 10,
  //     'totalPages': 1,
  //     'first': true,
  //     'numberOfElements': 10,
  //     'size': 20,
  //     'number': 0
  //   },
  //   'success': true
  // })
  // /*
  //     押金方案详情
  //  */
  // Mock.mock(/deposit\/\w+/i, 'get', {
  //   'data': {
  //     'id': 1,
  //     'price': '@natural(10, 200)'
  //   },
  //   'success': true
  // })

  // /*
  //     押金方案详情
  //  */
  // Mock.mock(/rent\/\w+/i, 'get', {
  //   'data': {
  //     'id': 1,
  //     'name': '@word',
  //     'prices|5': [{
  //       price: '@float(1, 1000, 2)',
  //       period: '@natural(5, 100)',
  //       'unit|1': [ {
  //         label: '秒',
  //         value: 'seconds'
  //       }, {
  //         label: '分',
  //         value: 'minutes'
  //       }, {
  //         label: '小时',
  //         value: 'hours'
  //       }, {
  //         label: '天',
  //         value: 'days'
  //       }, {
  //         label: '周',
  //         value: 'weeks'
  //       }, {
  //         label: '月',
  //         value: 'months'
  //       }, {
  //         label: '年',
  //         value: 'years'
  //       }]
  //     }]
  //   },
  //   'success': true
  // })

  // /*
  //     企业信息详情
  //  */
  // Mock.mock(/agent\/info/i, 'get', {
  //   'data': {
  //     'id': 1,
  //     'companyName': '@word',
  //     'orgCode': '@word(20)',
  //     'tel': '13000000000',
  //     'serviceName': '狗狗共享冰箱',
  //     'logo': {
  //       uid: '@natural',
  //       url: '@image(200x200)',
  //       name: 'flower.jpg'
  //     },
  //     appId: '@word',
  //     appSecret: '@word(30)',
  //     token: '@word',
  //     mchId: '@word',
  //     mchKey: '@word',
  //     keyPath: {
  //       uid: '@natural',
  //       url: '@image(200x200)',
  //       name: 'p12.p'
  //     }
  //   },
  //   'success': true
  // })

  /**
   * 所有新增操作
   */
  // Mock.mock(/\w+/, 'post', {
  //   'data': {},
  //   'success': true
  // })
  // /**
  //  * 所有修改操作
  //  */
  // Mock.mock(/\w+/i, 'put', {
  //   'data': {},
  //   'success': true
  // })
  // /**
  //  * 所有删除操作
  //  */
  // Mock.mock(/\w/i, 'delete', {
  //   'data': {},
  //   'success': true
  // })
  // Mock.mock(/\d/i, 'delete', {
  //   'data': {},
  //   'success': true
  // })
}
